# Contributor: Milan P. Stanić <mps@arvanta.net>
# Maintainer: Milan P. Stanić <mps@arvanta.net>
pkgname=poke
pkgver=4.2
pkgrel=0
pkgdesc="extensible editor for binary data"
url="https://www.jemarch.net/poke.html"
arch="all"
license="GPL-3.0-or-later"
makedepends="automake autoconf help2man gc-dev readline-dev gettext-dev json-c-dev dejagnu-dev"
checkdepends="dejagnu"
subpackages="$pkgname-doc"
source="https://ftp.gnu.org/gnu/poke/poke-$pkgver.tar.gz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	make -k check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
d820bda83e691a0df3a8b4e061152410e7c842c39b6dac7d49cdb4c0e07e6bb65db9c44a1eaaccf20949d10c225b3586dcbb2eb7aa58f139ca2a372f842530f5  poke-4.2.tar.gz
"
